/*
 *  Cero Project - Copyright   2006 The Cero Developement Team 
 *  (Michael Laguerre, Camille Roux, Matthieu Segret, Mathieu Sivade) 
 * 
 *  This program is free software; you can redistribute it and/or modify it 
 *  under the terms of the GNU General Public License as published by the Free 
 *  Software Foundation; either version 2 of the License, or (at your option) 
 *  any later version.
 * 
 *  This program is distributed in the hope that it will be useful, but 
 *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 *  for more details.
 */

package org.ceroproject.ui.commandline.commands;

import org.ceroproject.ui.commandline.Command;
import org.ceroproject.ui.commandline.CommandLineLauncher;

public class CommandsList extends Command {
	private static CommandsList instance = new CommandsList();

	protected CommandsList() {
		super("commands");
	}

	@Override
	public String toString() {
		return "list all the commands";
	}
	
	public static CommandsList getCommand(){
		return instance;
	}

	@Override
	public boolean executer(String parametres) {
		System.out.println(CommandLineLauncher.getCommands().getListeCommandes());
		return true;
	}

	@Override
	public String help() {
		return "list all the commands";
	}

}